home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / pcmagdoc.arc / LOCATE.DOC < prev    next >
Text File  |  1988-01-19  |  3KB  |  62 lines

  1.  
  2.           LOCATE                                  Steven Holzner
  3.           Command                       PC Magazine Vol 4, No 10
  4.         Copyright 1985 Ziff-Davis Publishing Company
  5.           
  6.           ______________________________________________________
  7.  
  8.           Purpose:  Searches all files in the current and the
  9.                     root directories of a drive for all
  10.                     occurrences of any specified sequence (e.g.,
  11.                     a word or phrase) of up to 20 ASCII
  12.                     characters. Additional search paths and/or
  13.                     drives may be specified by using Option 1.
  14.  
  15.           Format:   LOCATE searchstring
  16.  
  17.           Remarks:  In addition to returning the path(s) and
  18.                     filename(s) of the file(s) in which the
  19.                     requested string is found, LOCATE puts
  20.                     searchstring into a context of up to 20
  21.                     immediately surrounding characters.
  22.  
  23.                     LOCATE.COM is case sensitive;  the string to
  24.                     be found must be typed exactly.  The program
  25.                     does, however, strip "high-order" (non-ASCII)
  26.                     bits from searchstring, so it can be used,
  27.                     for example with WordStar document files.
  28.  
  29.                     Note:
  30.  
  31.                     1.   Requires the use of DOS 2.0 or later.
  32.  
  33.           Option 1: Normally, if LOCATE does not find the
  34.                     requested string either in the current
  35.                     directory or in the disk's root directory, it
  36.                     simply exits.  It does not automatically
  37.                     search every subdirectory on every drive.
  38.  
  39.                     You can extend the search range, however, by
  40.                     preparing a simple ASCII file that specifies
  41.                     additional paths and/or drives.  The name of
  42.                     this file must be PATH.DAT, and it must be
  43.                     located in the root directory (usually C:\
  44.                     for hard disks, A:\ for floppies).  An
  45.                     example of such a PATH.DAT file would be
  46.  
  47.                     \WORK
  48.                     \LEVEL1
  49.                     \A:
  50.  
  51.                     Each line in the PATH.DAT file must end with
  52.                     a carriage return and specifies an additional
  53.                     path (or drive) for LOCATE to check before it
  54.                     exits.  The PATH.DAT file can be up to 300
  55.                     bytes in length, and incorrectly specified
  56.                     entries are ignored.
  57.  
  58.                     The use of Option 1 will, of course, slow
  59.                     down the overall speed of the search.
  60.  
  61.  
  62.